Skip to content

Sheffield| 26-ITP-Jan| Mona-Eltantawy | Sprint 2 | Coursework/sprint 2#1227

Open
Mona-Eltantawy wants to merge 17 commits intoCodeYourFuture:mainfrom
Mona-Eltantawy:coursework/sprint--2
Open

Sheffield| 26-ITP-Jan| Mona-Eltantawy | Sprint 2 | Coursework/sprint 2#1227
Mona-Eltantawy wants to merge 17 commits intoCodeYourFuture:mainfrom
Mona-Eltantawy:coursework/sprint--2

Conversation

@Mona-Eltantawy
Copy link

@Mona-Eltantawy Mona-Eltantawy commented Mar 8, 2026

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I did the required changes for the Sprint 2 key -errors, mandatory-debug, mandatory- implement and mandatory- interpret files. committed the changes and pushed it to the git branch.

…syntax error occurs when the program runs and write the new code that doesn't redeclare the decimalNumber in a const variable in inside the function
…e the function paramater name is unvaild number . and changed the code after trying it by changing the function name to num be decalred and to work when I call the function.
… return a value and changed the console.log inside the function into return instead.
…return statement comes befor the value a +b and changed it to the correct order.
…amater to the getLastDigit function to make it accept new paramaters when it's called.
…underscores using the .toUpperCase() and 'replace' functions.
…ing and added a return at the end of the function.
…n of the str identifier and this what happened when i tested the programe. I suggested to change the let variable name into an new name 'newStr' and this fixed the issue.
@Mona-Eltantawy Mona-Eltantawy added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 8, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 8, 2026
@github-actions

This comment has been minimized.

@Mona-Eltantawy Mona-Eltantawy added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 8, 2026
@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 11, 2026
@Mona-Eltantawy Mona-Eltantawy added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 18, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Comment on lines +19 to +23
when the program run it give a SyntaxError: Identifier 'decimalNumber' has already been declared. This is because the variable decimalNumber is declared twice in the function
convertToPercentage.
Also using the function name decimalNumber with the console.log function will give an error because the function name should be a prober name not a Number.
to fix this error we can remove the const variable declaration of decimalNumber from the function and use the function name
'ConvertToPercentage' to recall the function and pass the value of the decimalNumber declaration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you need to keep them as comment (so Prettier won't identify them as invalid code), you can add // at the start of each line.

@cjyuan cjyuan removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 18, 2026
@cjyuan cjyuan added the Complete Volunteer to add when work is complete and all review comments have been addressed. label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants